package com.luke.dubbo.user.service.impl;

import com.luke.dubbo.api.bean.Person;
import com.luke.dubbo.api.service.IDemoService;

import java.util.concurrent.TimeUnit;

/**
 * @Descrtption MyDemoService
 * @Author luke
 * @Date 2020/4/1
 **/
public class MyDemoService implements IDemoService {

    @Override
    public Person get(int id) {
        try {
            TimeUnit.SECONDS.sleep(5);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return new Person("luke"+id);
    }

}
